﻿namespace NorthernLights
{
    using System;

    /// <summary>
    /// ExceptionContainer class.
    /// </summary>
    public class ExceptionContainer
    {
        /// <summary>
        /// Initializes a new instance of the ExceptionContainer class.
        /// </summary>
        public ExceptionContainer()
        {
        }

        /// <summary>
        /// Initializes a new instance of the ExceptionContainer class.
        /// </summary>
        /// <param name="ex">The exception to initialize the class with.</param>
        /// <param name="appVersion">Current app version.</param>
        public ExceptionContainer(Exception ex, string appVersion)
        {
            this.Message = ex.Message;
            this.StackTrace = ex.StackTrace;
            this.AppVersion = appVersion;
        }

        /// <summary>
        /// Gets or sets the AppVersion.
        /// </summary>
        public string AppVersion { get; set; }

        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// Gets or sets the stacktrace.
        /// </summary>
        public string StackTrace { get; set; }
    }
}
